package com.eshop.modules.monitor.domain.vo;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

public class RedisVo implements Serializable
{
    @NotBlank
    private String key;
    @NotBlank
    private String value;
    
    public String getKey() {
        return this.key;
    }
    
    public String getValue() {
        return this.value;
    }
    
    public void setKey(final String key) {
        this.key = key;
    }
    
    public void setValue(final String value) {
        this.value = value;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof RedisVo)) {
            return false;
        }
        final RedisVo other = (RedisVo)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$key = this.getKey();
        final Object other$key = other.getKey();
        Label_0065: {
            if (this$key == null) {
                if (other$key == null) {
                    break Label_0065;
                }
            }
            else if (this$key.equals(other$key)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$value = this.getValue();
        final Object other$value = other.getValue();
        if (this$value == null) {
            if (other$value == null) {
                return true;
            }
        }
        else if (this$value.equals(other$value)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof RedisVo;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $key = this.getKey();
        result = result * 59 + (($key == null) ? 43 : $key.hashCode());
        final Object $value = this.getValue();
        result = result * 59 + (($value == null) ? 43 : $value.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "RedisVo(key=" + this.getKey() + ", value=" + this.getValue() + ")";
    }
    
    public RedisVo(final String key, final String value) {
        this.key = key;
        this.value = value;
    }
    
    public RedisVo() {
    }
}
